package com.zxt;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;

/**
 * @author: Zxy
 * @Date: 2021-06-09
 **/
@SpringBootApplication
// 这个注解是通用的注解，不管是consul还是zk还是nacos都可以用这个
@EnableDiscoveryClient // 开启服务注册的客户端
public class ConsulClientApplication {
    public static void main(String[] args) {
        SpringApplication.run(ConsulClientApplication.class, args);
    }
}
